package com.yonyougov.devops.cruxcisupport.version.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yonyougov.devops.cruxcisupport.versioninfo.dto.RelationVersionInfoAddDto;
import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "新增版本请求")
public class VersionAddRequestDto extends BaseRequestDto {
    @NotNull
    @ApiModelProperty(required = true, name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @NotEmpty
    @ApiModelProperty(required = true, name = "版本名称")
    private String versionName;

    @NotNull
    @ApiModelProperty(required = true, name = "应用id")
    private BigInteger appId;

    @ApiModelProperty(required = true, name = "是否是开发版本")
    private Boolean developVersion;

    @NotNull
    @ApiModelProperty(required = true, name = "状态")
    private Integer status;

    @ApiModelProperty(required = true, name = "下载地址")
    private String url;

    private String versionType;

    private String versionDesc;
}
